package xyz.xtgl.merchant.feign.fallback;

import common.core.util.CustomizeRuntimeException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import plus.logic.LogicBaseFeignFallback;
import xyz.xtgl.merchant.entity.BMerchantUser;
import xyz.xtgl.merchant.feign.BMerchantUserFeign;

@Slf4j
@Component
public class BMerchantUserFeignFallback extends LogicBaseFeignFallback<BMerchantUser> implements BMerchantUserFeign{

    @Override
    public BMerchantUser loginByPhone(String phone) {
        log.info("触发熔断->loginByPhone->phone:{}",phone);
        throw CustomizeRuntimeException.exception("服务器繁忙,请稍后重试....");
    }
}
